
#简直不要不要的
import pyautogui

from test.win.mouse import mouseMove, mouseClick

# screenWidth, screenHeight = pyautogui.size()
# pyautogui.moveTo(screenWidth / 2, screenHeight / 2)

p = pyautogui.locateOnScreen('dirsw4.png')  # returns (left, top, width, height) of first place it is found
print(p)
mouseMove(p.left+p.width/2,p.top+p.height/2)
mouseClick()